<?php
/**
 * Created by PhpStorm.
 * User: lawrence
 * Date: 07.06.2014
 * Time: 12:51
 */

class Secure_Room extends  CI_Controller
{
    function get_data()
    {
        $this->load->library('session');

        $id = $this->input->post('roomId');

        $startdate = $this->input->post('startdate');
        $enddate = $this->input->post('enddate');

        $this->load->model('Db_Model_Find');

        $data['result'] = $this->Db_Model_Find->find_one($id);

        $data['startdate'] = $startdate;
        $data['enddate'] = $enddate;

        $data['window'] = 'search';
        $this->load->view('header', $data);

        $this->load->view('get_room', $data);

        $this->load->view('footer');
    }
} 